package com.erp.user.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 城市业务对象 city
 *
 * @author erp
 * @date 2023-05-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CityBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Integer id;

    /**
     * 城市
     */
    @NotBlank(message = "城市不能为空", groups = { AddGroup.class, EditGroup.class })
    private String city;

    /**
     * 省份ID
     */
    @NotNull(message = "省份ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer provinceId;


}
